package edu.ustb.efws;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
import org.springframework.web.client.RestTemplate;

/**
 * Efws配置
 *
 * @author TS Group
 */
@Configuration
public class EfwsConfigure {

    @Bean
    public RestTemplate restTemplate(){
        ClientHttpRequestFactory clientHttpRequestFactory = new OkHttp3ClientHttpRequestFactory();
        return new RestTemplate(clientHttpRequestFactory);
    }
}
